﻿using System;
using System.Collections.Generic;

namespace LibraryManagementSystem.Models;

/// <summary>
/// 会员信息表
/// </summary>
public partial class Member
{
    /// <summary>
    /// 会员ID，主键，自增
    /// </summary>
    public int Id { get; set; }

    /// <summary>
    /// 会员登录名，唯一
    /// </summary>
    public string Username { get; set; } = null!;

    /// <summary>
    /// 会员密码
    /// </summary>
    public string Password { get; set; } = null!;

    /// <summary>
    /// 会员姓名
    /// </summary>
    public string Name { get; set; } = null!;

    /// <summary>
    /// 联系方式
    /// </summary>
    public string Contact { get; set; } = null!;

    /// <summary>
    /// 会员类型
    /// </summary>
    public string MemberType { get; set; } = null!;

    public virtual ICollection<Borrowrecord> Borrowrecords { get; set; } = new List<Borrowrecord>();

    public virtual ICollection<Reservation> Reservations { get; set; } = new List<Reservation>();
}
